<?php
class node_m extends m{
  function __construct()
  {
    parent::__construct();
    $this->table = 'node';
    $this->fields = array('name','type','upid','title','content','ext','ext1','tags','order','create_date','update_date');
  }
  
  function n($name)
  {
    $r = $this->get(" and `name`='$name'");
    return $r[0];
  }
}
 
